Ubuntu 16.04
Sponsored Link

Install MediaWiki
2016/06/15
 
Install Wiki System MediaWiki.
[1]
[2]
[3] Create a database for MediaWiki.
root@www:~#
mysql -u root -p

Enter password:
Welcome to the MariaDB monitor.  Commands end with ; or \g.
Your MariaDB connection id is 33
Server version: 10.0.25-MariaDB-0ubuntu0.16.04.1 Ubuntu 16.04

Copyright (c) 2000, 2016, Oracle, MariaDB Corporation Ab and others.

Type 'help;' or '\h' for help. Type '\c' to clear the current input statement.

# create "mediawiki" databse (set any password for "password" section)

MariaDB [(none)]>
create database mediawiki;

Query OK, 1 row affected (0.00 sec)
MariaDB [(none)]>
grant all privileges on mediawiki.* to mediawiki@'localhost' identified by 'password';

Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
flush privileges;

Query OK, 0 rows affected (0.00 sec)
MariaDB [(none)]>
exit

Bye
[4] Install MediaWiki.
( Make sure and Download the latest one ⇒ https://www.mediawiki.org/wiki/Download/en )
root@www:~#
apt-get -y install php-mysqlnd
root@www:~#
curl -O https://releases.wikimedia.org/mediawiki/1.26/mediawiki-1.26.3.tar.gz

root@www:~#
tar zxvf mediawiki-1.26.3.tar.gz

root@www:~#
mv mediawiki-1.26.3 /var/www/html/mediawiki

root@www:~#
chown -R www-data. /var/www/html/mediawiki

root@www:~#
systemctl restart apache2
[5] Access to "http://(server's hostname or IP address)/mediawiki/mw-config/" and configure final settings.
[6] Scroll down to the bottom of the page and Click "Continue".
[7] Input Database infomation for MediaWiki to connect.
[8] It's OK with default.
[9] Set Wiki name and admin username.
[10] Click "Continue" to next.
[11] Click "Continue" to next.
[12] Click "Continue" to next.
[13] Setting up completed. Download "LocalSettings.php" and place it under "mediawiki" directory on your server.
[14] This is the index page of MediaWiki. Try to use it.
 
Tweet